<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>医院测算</title>
<link href="<%=request.getContextPath()%>/css/forecast.css" rel="stylesheet">
<script type="text/javascript" src="<%=request.getContextPath()%>/js/forecast/forecast2.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/forecast/forecast1.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/forecast/forecast.js"></script>
</head>
<body>
<div class="container-fluid">
	<!-- <h4 class="main-title">医院测算</h4> -->
	<div class="row">
		<div id="date_div" class="col-xs-offset-3  date_div" >
			<img id="search_png" src="images/co_search.png" click="conditionChange()">
		  	<label for="sdate" >&nbsp;&nbsp;开始月份:</label>
		  	<input id="sdate" type="text" class="form-control" >
		  	<label for="edate" >&nbsp;&nbsp;截止月份:</label>
		  	<input id="edate" type="text" class="form-control" >
		</div>
	</div>
	
	<div class="row rowhcq">
        <div class="boxcq clearfix">
            <div class="ti"><i class="fa fa-hand-o-up"></i>预算数据(<span id="date-from"></span>~<span id="date-to"></span>)</div>
            <ul class="nav nav-tabs boxnavcq" role="tablist"></ul>
            <div class="clearfix"></div>
            <div class="tab-content" style="padding: 0;">
            	<table id="foredata-table" class="table table-hover table-bordered">
						<thead>
						<tr>
							<td rowspan="2" width="120">类型</td>
							<td rowspan="2">入组病例数</td>
							<td rowspan="2">医保入组<br>病例数</td>
							<td rowspan="2">医保总基金(万元)</td>
							<td colspan="2">平均住院日</td>
							<td colspan="2">次均费用</td>
							<td colspan="2">医保次均费用</td>
							<td colspan="2">次均药费</td>
							<td colspan="2">医保次均药费</td>
							<td colspan="2">次均药耗费</td>
							<td colspan="2">医保次均药耗费</td>
						</tr>
						<tr>
							<td>实际值</td>
							<td>标杆值</td>
							<td>实际值</td>
							<td>标杆值</td>
							<td>实际值</td>
							<td>标杆值</td>
							<td>实际值</td>
							<td>标杆值</td>
							<td>实际值</td>
							<td>标杆值</td>
							<td>实际值</td>
							<td>标杆值</td>
							<td>实际值</td>
							<td>标杆值</td>
						</tr>
						</thead>
						<tbody></tbody>
					</table>
            </div>
        </div>
		<p class="text-muted">注：测算数据均采用入组病例</p>
    </div>
    
    <div class="row rowhcq">
        <div class="boxcq clearfix">
            <div class="ti"><i class="fa fa-pencil-square-o"></i>参数输入--科室组</div>
            <ul class="nav nav-tabs boxnavcq" role="tablist"></ul>
            <div class="clearfix"></div>
            <div class="tab-content">
                <div class="form-horizontal well">
                <div class="form-group">
				    <label for="mrYear" class="col-sm-1 control-label">预测年份:</label>
				    <div class="col-sm-11">
				      	<input id="planYear" value="2017"/>
				    </div>
				  </div>
				  <!-- <div class="form-group">
				    <label for="mrYear" class="col-sm-1 control-label">测算标杆:</label>
				    <div class="col-sm-11">
				      	<div class="btn-group" data-toggle="buttons">
						  <label class="btn btn-default active">
						    <input type="radio" name="mrYear" autocomplete="off" value="std" checked>全市均值
						  </label>
						  <label class="btn btn-default">
						    <input type="radio" name="mrYear" autocomplete="off" value="benchmark">管理目标
						  </label>
						</div>
				    </div>
				  </div> -->
				  <!-- <div style="float:right; position: relative">选择测算:<input id="forecastName" name="drgCode" style="width: 80px"/><button id="forecastNameOk">OK</button></div> -->
				  <div class="form-group" style="margin-bottom:0;">
				    <label for="paramQuotaCheck" class="col-sm-1 control-label">批量修改:</label>
				    <div class="col-sm-11">
				      	<select id="paramQuotaCheck" class="form-control inline-input-wt" style="width:147px;">
							<option value="AvgDays" selected="selected">平均住院日</option>
							<option value="AvgFee">次均费用</option>
							<option value="HCAvgFee">医保次均费用</option>
							<option value="DrugFee">次均药费</option>
							<option value="HCDrugFee">医保次均药费</option>
							<option value="DrugMateFee">次均药耗费</option>
							<option value="HCDrugMateFee">医保次均药耗费</option>
						</select>
						
						<div class="input-group inline-input-wt">
					    	<div class="input-group-addon">低于标杆</div>
					    	<input type="text" class="form-control" id="overManageID" value="0">
					    </div>
					    <div class="input-group inline-input-wt">
					    	<div class="input-group-addon">高于标杆</div>
					    	<input type="text" class="form-control" id="notOverManageID" value="0">
					    </div>
					    
					    <input class="icheck" type="radio" name="checkAll" checked value="1" id="checkAll1">
					    <label for="checkAll1">修改全部</label>
						<input class="icheck" type="radio" name="checkAll" value="0" id="checkAll0">
						<label for="checkAll0">修改选中</label>
				    	<button id="mergeParamOk" type="button" class="btn btn-primary">OK</button>
				    </div>
				  </div>
				</div>
				
				<div id="paramDepGroup" class="tablehead ">
					<table id="paramDepGroup-table" class="table table-hover table-bordered">
						<thead>
						<tr>
							<td rowspan="2" width="120">科室组</td>
							<td rowspan="2">入组病例数</td>
							<td colspan="2">平均住院日</td>
							<td colspan="2">次均费用</td>
							<td colspan="2">医保次均费用</td>
							<td colspan="2">次均药费</td>
							<td colspan="2">医保次均药费</td>
							<td colspan="2">次均药耗费</td>
							<td colspan="2">医保次均药耗费</td>
							
							<!-- <td rowspan="2">病种设置</td> -->
						</tr>
						<tr>
							<td>低于标杆</td>
							<td>高于标杆</td>
							<td>低于标杆</td>
							<td>高于标杆</td>
							<td>低于标杆</td>
							<td>高于标杆</td>
							<td>低于标杆</td>
							<td>高于标杆</td>
							<td>低于标杆</td>
							<td>高于标杆</td>
							<td>低于标杆</td>
							<td>高于标杆</td>
							<td>低于标杆</td>
							<td>高于标杆</td>
						</tr>
						</thead>
						<tbody></tbody>
					</table>
				</div>
				
				<table id="processId" width="70%" style="float:left;margin-top:10px;">
					<tr>
						<td width="10%">
						正在测算：
						</td>
						<td width="20%">
							<span id="processInfo"></span>
						</td>
						<td width="70%">
							<div id="total1bar" class="progress" style="width: 100%;margin:10px;">
							   <div id="total1" class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
							</div>
						</td >		
					</tr>
				</table>
				  <button id="calculate_btn"  class="btn btn-success  pull-right">点击测算</button>
            </div>
        </div>
		<div class="col-xs-8"><p class="text-muted">注：1.以上参数均应用于科室组下科室病种的调整； 2.输入框中的值为要下调的百分点值</p></div>
    </div>
    <div class="row rowhcq">
        <div class="boxcq clearfix">
            <div class="ti"><i class="fa fa-rocket"></i>预测结果</div>
            <ul class="nav nav-tabs boxnavcq" role="tablist">
          	<li class="active">
					<a class="tabActive" href="#hospResult" role="tab" data-toggle="tab">
						全院
					</a>
				</li> 
				<li>
					<a href="#depGroupResult" role="tab" data-toggle="tab">
						科室组
					</a>
				</li>
				<li>
					<a href="#depResult" role="tab" data-toggle="tab">
						科室
					</a>
				</li>
            </ul>
            <!-- <div class="boxr">
            	<div class="input-group inline-input-wt">
			    	<div class="input-group-addon">读取类型:</div>
			    	<select id="foreCastType" class="form-control" onChange="queryBytype()" style="width: 80px;">
						<option value="I">理想值</option>
						<option value="E">预期值</option>
						<option value="T">目标值</option>
					</select>
			    </div>
			    <div class="input-group inline-input-wt">
			    	<div class="input-group-addon">保存类型：</div>
			    	<select id="saveCastType" class="form-control" style="width: 80px;">
						<option value="I">理想值</option>
						<option value="E">预期值</option>
						<option value="T">目标值</option>
				    </select>
			    </div>
            </div> -->
            <div class="clearfix"></div>
            <div class="tab-content">
            	<div role="tabpanel" class="tab-pane fade active in" id="hospResult">
            		<div class="row">
						<div class="col-md-3">
							<div class="title">平均住院日</div>
							<table id="hospAvgDays" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>				
						</div>
						<div class="col-md-3">
							<div class="title">次均费用</div>
							<table id="hospAvgFee" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" td width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
						<div class="col-md-3 hc">
							<div class="title">医保次均费用</div>
							<table id="hospHCAvgFee" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" td width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
						<div class="col-md-3">
							<div class="title">次均药费</div>
							<table id="hospDrugFee" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
				
						<div class="col-md-3 hc" >
							<div class="title">医保次均药费</div>
							<table id="hospHCDrugFee" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
						<div class="col-md-3">
							<div class="title">入组病例数</div>
							<table id="hospTotalCaseCnt" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
						<div class="col-md-3 hc">
							<div class="title">医保入组病例数</div>
							<table id="hospHCCaseCnt" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
						<div class="col-md-3 hc">
							<div class="title">医保总基金</div>
							<table id="hospHCTotalFund" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>

						<div class="col-md-3">
							<div class="title">时间消耗指数</div>
							<table id="hospTimeEff" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
						<div class="col-md-3">
							<div class="title">费用消耗指数</div>
							<table id="hospFeeEff" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
						<div class="col-md-3">
							<div class="title">次均药耗费</div>
							<table id="hospDrugMateFee" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
						<div class="col-md-3 hc">
							<div class="title">医保次均药耗费</div>
							<table id="hospHCDrugMateFee" class="table-card">
								<tr style="display:none"><td colspan="2"></td></tr>
								<tr><td rowspan="2" width="50%" class="editClass"></td><td></td></tr>
								<tr><td width="50%"></td></tr>
								<tr style="display:none"><td></td></tr>
							</table>
						</div>
					</div>
					<button class="btn btn-success" id="saveHosp_btn" style="margin-top: 10px;float: right; margin-right: 10px;">保存</button>
				<button class="btn btn-primary" id="saveHosp_manager_btn" style="margin-top: 10px;float: right; margin-right: 10px;display: none">另存为全院绩效标杆</button>
				</div> 
				
				<div role="tabpanel" class="tab-pane fade in" id="depGroupResult">
					<table id="resultDepGroup-table"  class="table display nowrap"  style="width:100%;"></table>
					<button class="btn btn-success" id="saveDepGroup_btn" style="margin-top: 10px;float: right; margin-right: 10px;">保存</button>
					<button class="btn  btn-primary" id="saveDepGroup_manager_btn" style="margin-top: 10px;float: right; margin-right: 10px;display: none">另存为科室组绩效标杆</button>
				</div>
				
				<div role="tabpanel" class="tab-pane fade in" id="depResult">
					<table id="resultDep-table"  class="table display nowrap" style="width:100%;    border: seashell;" border=1 ></table>
				<button class="btn btn-success" id="saveDep_btn" style="margin-top: 10px;float: right; margin-right: 10px;">保存</button>
				<button class="btn  btn-primary" id="saveDep_manager_btn" style="margin-top: 10px;float: right; margin-right: 10px;display: none">另存为科室绩效标杆</button>
				
				</div>               
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function(){
  $('input.icheck').iCheck({
    checkboxClass: 'icheckbox_square-blue',
    radioClass: 'iradio_square-blue',
    increaseArea: '20%' // optional
  });
});
</script>
</body>
</html>